package model.response

import org.simpleframework.xml.{Element, Root}

import scala.beans.BeanProperty

@Root(name = "xml", strict = false)
class WXRefundQueryResponse {
  
  @Element(name = "return_code")
  @BeanProperty var returnCode:String = _

  @Element(name = "return_msg", required = false)
  @BeanProperty var returnMsg:String = _

  /** 以下字段在return_code为SUCCESS的时候有返回. */
  @Element(name = "result_code", required = false)
  @BeanProperty var resultCode:String = _

  @Element(name = "err_code", required = false)
  @BeanProperty var errCode:String = _

  @Element(name = "err_code_des", required = false)
  @BeanProperty var errCodeDes:String = _

  @Element(name = "appid", required = false)
  @BeanProperty var appid:String = _

  @Element(name = "mch_id", required = false)
  @BeanProperty var mchId:String = _

  @Element(name = "nonce_str", required = false)
  @BeanProperty var nonceStr:String = _

  @Element(name = "sign", required = false)
  @BeanProperty var sign:String = _

  @Element(name = "transaction_id", required = false)
  @BeanProperty var thirdOrderNo:String = _

  @Element(name = "out_trade_no", required = false)
  @BeanProperty var payOrderNo:String = _

  @Element(name = "out_refund_no_0", required = false)
  @BeanProperty var refundOrderNo:String = _

  @Element(name = "refund_fee_0", required = false)
  @BeanProperty var refundAmount:Long = 0L

  @Element(name = "refund_status_0", required = false)
  @BeanProperty var refundStatus:String = _
}
